package com.rybbaby.tss.front.tssPayment.service.imp;

import com.rybbaby.tss.core.web.service.imp.BaseServiceImp;
import com.rybbaby.tss.front.tssPayment.dao.IViewPaymentReturnPremiumDao;
import com.rybbaby.tss.front.tssPayment.entity.ViewPaymentReturnPremium;
import com.rybbaby.tss.front.tssPayment.service.IViewPaymentReturnPremiumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @description 缴费表数据库操作服务实现
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-10 上午12:22:55
 */
@Service
@Transactional
public class ViewPaymentReturnPremiumServiceImp extends BaseServiceImp<ViewPaymentReturnPremium> implements IViewPaymentReturnPremiumService {

    @Autowired
    private IViewPaymentReturnPremiumDao viewPaymentReturnPremiumDao;


    @Override
    public ViewPaymentReturnPremium findByStuId(String stuId) throws Exception {
        ViewPaymentReturnPremium viewPaymentReturnPremium = viewPaymentReturnPremiumDao.findByStuId(stuId);
        return viewPaymentReturnPremium;
    }

    @Override
    public List<ViewPaymentReturnPremium> getAllList() {
        return viewPaymentReturnPremiumDao.getAllList();
    }
}


